import { request } from 'umi';

export function getTeacherList(params: any) {
  return request('http://localhost:3000/teachers', {
    method: 'get',
    params,
  });
}

export function saveTeacher(params: any) {
  return request('http://localhost:3000/teachers/save', {
    method: 'post',
    params,
  });
}
